from django.conf import settings
from django.conf.urls.static import static 
from django.conf.urls import patterns, url
from zhensuoguanli import views

 
urlpatterns = patterns('',
    url(r'^$', views.index, name='index'),
    url(r'^login/$',views.login,name = 'login'),
    url(r'^regist/$',views.regist,name = 'regist'),
    url(r'^index/$',views.index,name = 'index'),
    url(r'^Dindex/$',views.Dindex,name = 'Dindex'),
    url(r'Cindex/$',views.Cindex,name = 'Cindex'),
    url(r'^logout/$',views.logout,name = 'logout'),
    url(r'^SRegist/$',views.SRegist,name = 'SRegist'),
)


if settings.DEBUG:
    urlpatterns +=static(settings.STATIC_URL,
                         document_root=settings.STATIC_ROOT)
    urlpatterns +=static(settings.MEDIA_URL,
                         document_root=settings.MEDIA_ROOT)